/**
 * UserSettingServiceImpl.java
 * @author
 * 作者 屈甲康 
 */
package org.jackysoft.service.impl;

import javax.annotation.Resource;

import org.jackysoft.data.AbstractDataProvider;
import org.jackysoft.entity.LoginContext;
import org.jackysoft.entity.LoginContextMapper;
import org.jackysoft.service.LoginContextService;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

@Service
public class LoginContextServiceImpl extends
		AbstractDataProvider<LoginContext> implements LoginContextService {
	
	
	@Resource
	LoginContextMapper mapper;
	
	public LoginContextServiceImpl() {
		super();
	}

	@Override
	public LoginContext getByOwner(String owner) throws DataAccessException {
		LoginContext bean = mapper.findByOwner(owner);
		return bean;
	}

	@Override
	public void removeByOwner(String owner) throws DataAccessException {
		mapper.removeByOwner(owner);
		
	}

	

}